package cn.com.cennavi.config;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class ReadResultDataSampleFromDBConfig {
	public static String hotSpotPath, odNumPath;
	private static Properties props = null;

	public static void init() {
		props = new Properties();
		try {
			props.load(new FileInputStream("./configfiles/ReadResultDataSampleFromDB.properties"));
			hotSpotPath = props.getProperty("hotSpotPath");
			odNumPath = props.getProperty("odNumPath");
//			System.out.println(hotSpotPath);
//			System.out.println(odNumPath);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public static String getHotSpotPath() {
		if (hotSpotPath == null) {
			init();
		}
		return hotSpotPath;
	}

	public static String getOdNumPath() {
		if (odNumPath == null) {
			init();
		}
		return odNumPath;

	}

	public static void main(String[] args) {
		ReadResultDataSampleFromDBConfig.init();
	}

}
